package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.*;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

/**
 * @Author
 * @Date 2024/5/16 18:48
 * @Description:
 */
public interface OrderService extends IService<Orders> {


    OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);


    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);


    PageResult getOrderList(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO getClassCount();

    void update(OrdersRejectionDTO ordersRejectionDTO);

    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    OrderVO getOrderDetails(Long id);

    void delivery(Long id);

    void complete(Long id);

    void cancel(OrdersCancelDTO ordersCancelDTO);

    void reminder(Long id);

    PageResult getHistoryOrders(Long page, Long pageSize, Long status);

    void userCancel(Long id);

    void repetition(Long id);
}
